<%--사용안하는 페이지임 --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/sms_riskI_script.js"></script>-->
</head>
<body>
<div class="box">
      		<h4 class="white">위협목록</h4>
        <div class="box-container1">     		
        <form name="riskIDelForm" action="riskIAction.do" method="post">
        	<input type="hidden" name="mode" value="baseT_delete"></input>
        	<input type="hidden" name="pro_id"  id="pro_id" value="${sessionScope.lastProId }"></input>
        	<table class="table-long">
      			<tfoot>
      				<tr>
      					<td><div class="align-right"><!--select class="form-select"><option value="option1">Bulk Options</option>
      					<option value="option2">Delete All</option></select>
      					<a href="#" class="button" onclick="javascript: riskIWritePage('makind_insertPage')"><span>작성</span></a>
      					-->
      					<a href="#" class="button" onclick="javascript: riskIWritePage('baseT_insertPage')"><span>입력</span></a>
      					<a href="#" class="button" onclick="javascript: riskIDelete()"><span>삭제</span></a></div></td>
      				</tr>
      				<tr><td class="spaceLine"></td></tr>
      			</tfoot>
      		</table>
      		<table class="table-long">
      			<colgroup>
					<col width="55px"/>
					<col width="80px"/>
					<col width="120px"/>
					<col width="80px"/>
					<col width="150px"/>
					<col width="80px"/>
					<col/>
					<col width="15px"/>
				</colgroup>
      			<thead>
      				<tr>
      					<td class="col-chk col-rowspanMid col-alignCenter">
      						<input type='checkbox' name='checkAll' onclick="javascript: selectAll()" style="cursor:pointer"></input>
      					</td>
      					<td>위협유형코드</td>
      					<td>위협유형</td>
      					<td>위협명코드</td>
      					<td>위협명</td>
      					<td>상세위협코드</td>
      					<td>상세위협</td>
      					<td></td>
      				</tr>
      			</thead>
      		</table>
      		<div style="overflow:auto; overflow-x: hidden; width: 730px; height: 420px;  margin: 0 auto;">
      		<table class="table-long">
      			<colgroup>
					<col width="55px"/>
					<col width="80px"/>
					<col width="120px"/>
					<col width="80px"/>
					<col width="150px"/>
					<col width="80px"/>
					<col/>
					<col width="15px"/>
				</colgroup>
      			<tbody>
      				<c:choose>
                    	<c:when test="${fn:length(list)!= 0}">
                       	<c:forEach var="list" items="${requestScope.list}" varStatus="status">
	                    			<%--
	                    			<tr onmouseover="ChangeBackground(this,'over','${status.index}');" onmouseout="ChangeBackground(this,'out','${status.index}');" class="odd">
	                    			 --%>
	                    	<tr <c:if test="${status.index%2==0 }">class="odd"</c:if>>
                    			<td class="col-chk col-rowspanMid col-alignCenter"><input type="checkbox" name="check" id="check${status.index+1 }" style="cursor:pointer" value='${list.base_lev1}${list.base_lev2}${list.base_lev3}'></input></td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.base_lev1 }">${list.base_lev1 }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.tk_nm1 }">${list.tk_nm1 }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.base_lev2 }">${list.base_lev2 }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;">
                    					<a href="riskIAction.do?mode=baseT_updatePage&base_levAll=${list.base_lev1}${list.base_lev2}${list.base_lev3}" class="nor ellipsis" title='${list.tk_nm2 }'>${list.tk_nm2 }</a>
                    				</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.base_lev3 }">${list.base_lev3 }</div>
                    			</td>
                    			<td>
                    				<div class="ellipsis"  style="width:100%;" title="${list.tk_nm3 }">${list.tk_nm3 }</div>
                    			</td>
	   					 	<td></td>
                    		</tr>
	                    		
                    	</c:forEach>
                    	</c:when>
                    	<c:otherwise>
                    		<tr class="odd">
								<td style="text-align: center; height: 35px ; vertical-align: middle; " colspan="8" valign="middle" class="col-first">-데이터가 없습니다-</td>
							</tr>
                    	</c:otherwise>
                    	</c:choose>
      			</tbody>
      		</table>  	
      		</div>
      		</form>
      	</div><!-- end of div.box-container1 -->
      	</div> <!-- end of div.box -->
</body>
</html>